From: Adel Gadllah Date: Wed, 9 Mar 2011 20:59:50 +0000 (+0100) Subject: statusMenu: Lock screen before suspending X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8721 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=162d029c81959833d30d9b610dc0df22f76b6fce;p=gnome-shell.git statusMenu: Lock screen before suspending We need to lock the screen before suspending the system to prevent unauthorized access to the system / account. https://bugzilla.gnome.org/show_bug.cgi?id=643357 --- diff --git a/js/ui/statusMenu.js b/js/ui/statusMenu.js index adf5491f7..9c251b83c 100644 --- a/js/ui/statusMenu.js +++ b/js/ui/statusMenu.js @@ -218,7 +218,9 @@ StatusMenuButton.prototype = { if (this._haveSuspend && this._suspendOrPowerOffItem.state == PopupMenu.PopupAlternatingMenuItemState.DEFAULT) { - this._upClient.suspend_sync(null); + this._screenSaverProxy.LockRemote(Lang.bind(this, function() { + this._upClient.suspend_sync(null); + })); } else { Util.spawn(['gnome-session-quit', '--power-off']); }